package com.example.plat.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.plat.enity.Activity;
import com.example.plat.enity.Comment;
import com.example.plat.enity.Place;
import com.example.plat.exception.ActivityException;

import java.util.List;
import java.util.Map;

public interface GetActivityService {

    //浏览活动
    Activity lookActivity(Long actId) throws ActivityException;

    //查看创建活动信息
    Activity getCreateActivity(Long actId);

    //查看图片
    List<String> getImage(Long actId);

    //获取活动的所有评论
    List<Comment> getComment(Long actId);

    //是否参与活动
    boolean isJoin(Long userId,Long actId);

    Place getPlace(Long placeId);

    //根据条件查询活动，返回页
    IPage<Activity> findActivityByConditions(Map<String, Object> condition, Integer pageNum, Integer pageSize);

    IPage<Activity> search(String condition,Integer pageNum,Integer pageSize);
}
